#include "NetcdfGribReader.h"
#include "OCGrib/GribDataReader.h"

using namespace OCPP;

NetcdfGribReader::NetcdfGribReader()
{

}

void NetcdfGribReader::close()
{
	gribWrapper.close();
}

bool NetcdfGribReader::open(String fileName)
{
	return gribWrapper.open(fileName);
}

GridVariablePtr NetcdfGribReader::findVariable(String name)
{
	return gribWrapper.findVariable(name);
}

GridDataReaderPtr NetcdfGribReader::getDataReader(GridShape origin, GridShape shape, GridVariablePtr variable)
{
	return std::make_shared<GribDataReader>(origin, shape, variable);
}
